/**
 * 
 */
package com.vote.util;

import java.util.Collection;

public class CollectionUtil {

	public static boolean contains(final Collection<Object> c, Object o) {
		for (Object obj : c) {
			if (obj.equals(o)) {
				return true;
			}
		}
		return false;
	}

	public static boolean contains(final Object[] objs, Object o) {
		for (Object obj : objs) {
			if (obj.equals(o)) {
				return true;
			}
		}
		return false;
	}
}
